package cn.wu.org.service;

import cn.wu.org.basic.utils.PageList;
import cn.wu.org.domain.Department;
import cn.wu.org.query.DepartmentQuery;

import java.util.List;

public interface IDepartmentService {
    //根据id查询
    Department findById(Long id);

    //查询全部
    List<Department> findAll();

    //查询全部(分页查询)
    PageList<Department> queryAll(DepartmentQuery query);

    //添加
    void add(Department department);

    //删除
    void delete(Long id);

    //修改
    void update(Department department);
}
